package cfca.seal.front.service.ws.bean;

import cfca.seal.util.StringUtil;

public class AddWaterMarkToPdfBean
{
  private String fromPage;
  private String toPage;
  private String absoluteX;
  private String absoluteY;
  private String alpha;
  private String fitWidth;
  private String fitHeight;
  private String rotationDegree;
  private String waterMarkImage;
  private String waterMarkText;
  private String textFontSize;
  private String textColor;

  public String getFromPage()
  {
    return this.fromPage;
  }

  public void setFromPage(String fromPage) {
    this.fromPage = fromPage;
  }

  public String getToPage() {
    return this.toPage;
  }

  public void setToPage(String toPage) {
    this.toPage = toPage;
  }

  public String getAbsoluteX() {
    return this.absoluteX;
  }

  public void setAbsoluteX(String absoluteX) {
    this.absoluteX = absoluteX;
  }

  public String getAbsoluteY() {
    return this.absoluteY;
  }

  public void setAbsoluteY(String absoluteY) {
    this.absoluteY = absoluteY;
  }

  public String getAlpha() {
    return this.alpha;
  }

  public void setAlpha(String alpha) {
    this.alpha = alpha;
  }

  public String getFitWidth() {
    return this.fitWidth;
  }

  public void setFitWidth(String fitWidth) {
    this.fitWidth = fitWidth;
  }

  public String getFitHeight() {
    return this.fitHeight;
  }

  public void setFitHeight(String fitHeight) {
    this.fitHeight = fitHeight;
  }

  public String getRotationDegree() {
    return this.rotationDegree;
  }

  public void setRotationDegree(String rotationDegree) {
    this.rotationDegree = rotationDegree;
  }

  public String getWaterMarkImage() {
    return this.waterMarkImage;
  }

  public void setWaterMarkImage(String waterMarkImage) {
    this.waterMarkImage = waterMarkImage;
  }

  public String getWaterMarkText() {
    return this.waterMarkText;
  }

  public void setWaterMarkText(String waterMarkText) {
    this.waterMarkText = waterMarkText;
  }

  public String getTextFontSize() {
    return this.textFontSize;
  }

  public void setTextFontSize(String textFontSize) {
    this.textFontSize = textFontSize;
  }

  public String getTextColor() {
    return this.textColor;
  }

  public void setTextColor(String textColor) {
    this.textColor = textColor;
  }

  public AddWaterMarkToPdfBean(String xml) {
    this.fromPage = StringUtil.getNodeText(xml, "FromPage");
    this.toPage = StringUtil.getNodeText(xml, "ToPage");
    this.absoluteX = StringUtil.getNodeText(xml, "AbsoluteX");
    this.absoluteY = StringUtil.getNodeText(xml, "AbsoluteY");
    this.alpha = StringUtil.getNodeText(xml, "Alpha");
    this.fitWidth = StringUtil.getNodeText(xml, "FitWidth");
    this.fitHeight = StringUtil.getNodeText(xml, "FitHeight");
    this.rotationDegree = StringUtil.getNodeText(xml, "RotationDegree");
    this.waterMarkImage = StringUtil.getNodeText(xml, "WaterMarkImage");
    this.waterMarkText = StringUtil.getNodeText(xml, "WaterMarkText");
    this.textFontSize = StringUtil.getNodeText(xml, "TextFontSize");
    this.textFontSize = (StringUtil.isEmpty(this.textFontSize) ? "12" : this.textFontSize);
    this.textColor = StringUtil.getNodeText(xml, "TextColor");
    this.textColor = (StringUtil.isEmpty(this.textColor) ? "0000FF" : this.textColor);
  }
}